package com.tjut.oop.hol4;

public class SalesEmployee extends ColaEmployee {
	// 月销售额
	private int MonthSales;

	// 销售的提成率
	private double RoyaltyRate;

	public SalesEmployee(String staffNam, int staffBirthMonth, int monthSales, double royaltyRate) {
		super(staffNam, staffBirthMonth);
		MonthSales = monthSales;
		RoyaltyRate = royaltyRate;
	}
	public double getSalary(int month){
		return MonthSales*RoyaltyRate+super.getSalary(month);
	}

}
